/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.edu.zjut.ces.dao.impl;

import cn.edu.zjut.ces.dao.DaoTest;
import cn.edu.zjut.ces.domain.Mytest;
import javax.persistence.EntityManager;

/**
 *
 * @author user
 */
public class DaoTestImpl implements DaoTest{
    private EntityManager em;

    public DaoTestImpl(EntityManager em){
        this.em = em;
    }

    @Override
    public void add(Mytest mytest){
        em.persist(mytest);
    }
}
